#import "AppDelegate.h"
#import "GeneratedPluginRegistrant.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [GeneratedPluginRegistrant registerWithRegistry:self];
    // Override point for customization after application launch.
    [self printAllFiles];
    
    return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

- (void)printAllFiles {
    [self printAllFilesFrom:NSBundle.mainBundle.resourcePath level:0];
}

- (void)printAllFilesFrom:(NSString *)rootPath level:(int)level {
    NSLog(@"%@: ", rootPath);
    NSFileManager *fileManager = NSFileManager.defaultManager;
    NSDirectoryEnumerator *enumerator = [fileManager enumeratorAtPath:rootPath];
    for (NSString *subpath in enumerator) {
        NSLog(@"%@", subpath);
    }
}

@end
